# Maintainer: John Vogel <jvogel4@stny.rr.com>
pkgname=traceroute
pkgver=2.1.5
pkgrel=0
pkgdesc="New modern implementation of traceroute(8) utility for Linux systems"
url="https://traceroute.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="linux-headers"
options="!check" # no tests
subpackages="$pkgname-doc"
source="
	https://downloads.sourceforge.net/traceroute/traceroute-$pkgver.tar.gz
	reproducible-build.patch
	"

# secfixes:
#   2.1.3-r0:
#     - CVE-2023-46316

build() {
	make CFLAGS="$CFLAGS -flto=auto" LDFLAGS="$LDFLAGS"
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr install
}

sha512sums="
4557e6091cd34edd9761ffa5c75e13d63e7ae17c9d060f18306487cd5c1e7eece8a7ef3ddc6bf40f78d1014ed38ce2411c14d839251412978b2da0915180be93  traceroute-2.1.5.tar.gz
ef3727593c857865b2bb955dfb0faab3be0c22ae6f47b521813b7fd2569a42cd78d74ddbff88fcf89379a6c28204cf502aa9f48166e5a6ac192b084e2543a3de  reproducible-build.patch
"
